﻿using NoteSystem.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NoteSystem
{
    /// <summary>
    /// DelReplyHandler 的摘要说明
    /// </summary>
    public class DelReplyHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            int rid = Convert.ToInt32(context.Request["rid"]);
            int flag = DbHelper.ExecuteSql("delete from replys where id=" + rid);
            if (flag > 0)
            {
                context.Response.Write("true");
            }
            else
            {
                context.Response.Write("false");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}